
package com.tianyang.yukuaifu.utils.permissions;

import android.Manifest;
import android.annotation.TargetApi;

/**
 * Description：android6.0+需要动态申请的权限
 * Created by 薛勇军 on 2018/6/8.
 */
@TargetApi(19)
public interface PermissionsConstant {
    /**
     * 权限被允许
     */
    int GRANTED = 0;

    /**
     * 权限被拒绝
     */
    int DENIED = -1;

    /**
     * 权限没找到
     */
    int NOT_FOUND = -2;

    /**
     * 相机权限
     */
    String CAMERA = Manifest.permission.CAMERA;

    /**
     * 定位1
     */
    String FINE_LOCATION = Manifest.permission.ACCESS_FINE_LOCATION;

    /**
     * 定位2
     */
    String COARSE_LOCATION = Manifest.permission.ACCESS_COARSE_LOCATION;

    /**
     * android 10
     */
    String BACKGROUND_LOCATION = Manifest.permission.ACCESS_BACKGROUND_LOCATION;

    /**
     * 定位3
     */
    String LOCATION_EXTRA_COMMANDS = Manifest.permission.ACCESS_LOCATION_EXTRA_COMMANDS;

    /**
     * 读SD卡
     */
    String READ_STORAGE = Manifest.permission.READ_EXTERNAL_STORAGE;

    /**
     * 写SD卡
     */
    String WRITE_STORAGE = Manifest.permission.WRITE_EXTERNAL_STORAGE;

    /**
     * 创建桌面快捷方式
     */

    String INSTALL_SHORTCUT = Manifest.permission.INSTALL_SHORTCUT;

    /**
     * 弹出系统浮层
     */
    String SYSTEM_ALERT_WINDOW = Manifest.permission.SYSTEM_ALERT_WINDOW;

    /**
     * 修改系统设置
     */
    String WRITE_SETTINGS = Manifest.permission.WRITE_SETTINGS;

    /**
     * 读取用户的日程信息
     */
    String READ_CALENDAR = Manifest.permission.READ_CALENDAR;

    /**
     * 允许程序写入日程，但不可读取
     */
    String WRITE_CALENDAR = Manifest.permission.WRITE_CALENDAR;

    /**
     * 读取联系人通讯录
     */
    String READ_CONTACT = Manifest.permission.READ_CONTACTS;

    /**
     * 写入联系人,但不可读取
     */
    String WRITE_CONTACT = Manifest.permission.WRITE_CONTACTS;

    /**
     * 允许程序访问账户Gmail列表
     */
    String GET_ACCOUNTS = Manifest.permission.GET_ACCOUNTS;

    /**
     * 录音权限
     */
    String RECORD_AUDIO = Manifest.permission.RECORD_AUDIO;

    /**
     * 允许程序访问电话状态
     */
    String READ_PHONE_STATE = Manifest.permission.READ_PHONE_STATE;

    /**
     * 打电话
     */
    String CALL_PHONE = Manifest.permission.CALL_PHONE;

    /**
     * 读取通话记录
     */
    String READ_CALL_LOG = Manifest.permission.READ_CALL_LOG;

    /**
     * 允许程序写入（但是不能读）用户的联系人数据
     */
    String WRITE_CALL_LOG = Manifest.permission.WRITE_CALL_LOG;

    /**
     * 允许一个应用程序添加语音邮件系统
     */
    String ADD_VOICEMAIL = Manifest.permission.ADD_VOICEMAIL;

    /**
     * 允许程序使用SIP视频服务
     */
    String USE_SIP = Manifest.permission.USE_SIP;

    /**
     * 允许程序监视，修改或放弃播出电话
     */
    String PROCESS_OUTGOING_CALLS = Manifest.permission.PROCESS_OUTGOING_CALLS;

    /**
     * SENSORS
     */
    String BODY_SENSORS = Manifest.permission.BODY_SENSORS;

    /**
     * 发短信
     */
    String SEND_SMS = Manifest.permission.SEND_SMS;

    /**
     * 允许程序接收短信
     */
    String RECEIVE_SMS = Manifest.permission.RECEIVE_SMS;

    /**
     * 允许程序读取短信内容
     */
    String READ_SMS = Manifest.permission.READ_SMS;

    /**
     * 允许程序接收WAP PUSH信息
     */
    String RECEIVE_WAP_PUSH = Manifest.permission.RECEIVE_WAP_PUSH;

    /**
     * 允许程序接收彩信
     */
    String RECEIVE_MMS = Manifest.permission.RECEIVE_MMS;
}
